package com.example.dubbo.consumer.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.example.dubbbo.sdk.service.HelloService;
import org.springframework.stereotype.Service;

/**
 * @author mengwei
 * @date 2021/12/17
 */
@Service
public class TestService {

    @Reference(version = "1.0.0", timeout = 3000)
    private HelloService helloService;

    public String test(String msg) {
        return helloService.sayHello(msg);
    }
}
